From 0b2a1324a4280ab4ca678b212c69cdc2fbbe84ed Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 22 Feb 2018 18:13:57 +0000 Subject: [PATCH] debian/bin/genorig.py: Use assert rather than RuntimeError That way, bad usage prints something slightly less opaque. Signed-off-by: Ian Jackson --- debian/bin/genorig.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py index 8128a33ee1..c0f2846f1c 100755 --- a/debian/bin/genorig.py +++ b/debian/bin/genorig.py @@ -93,6 +93,5 @@ if __name__ == '__main__': p.add_option('-t', '--tag', dest='tag') p.add_option('-V', '--override-version', dest='override_version') options, args = p.parse_args() - if len(args) != 1: - raise RuntimeError + assert(len(args) == 1) Main(options, *args)() -- 2.30.2